import request from "@/utils/request";

export function login(data) {
  return request({
    url: "battery/login",
    method: "post",
    data: data,
  });
}

export function getInfo() {
  return request({
    url: "auth/info",
    method: "get",
  });
}

export function logouts(data) {
  return request({
    url: "battery/businessGateway",
    method: "post",
    data: data,
  });
}
export function urlObj(data) {
  return request({
    url: "battery/businessGateway",
    method: "post",
    data: data,
  });
}
export function comurlObj(data) {
  return request({
    url: "battery/commandGateway",
    method: "post",
    data: data,
  });
}
